#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''eof
name:维度修正_目标企业一度关联企业 3年内 涉诉数量
code:U_RPR1EntLitigation_3Yr
tableName:
columnName:
groups:准入>申请人关联方校验
dependencies:EG_BBD
type:常用指标
dataSourceType:在线指标
description:
eof'''

'''
直接从返回的EG接口取出

'''


def U_R1EntLitigation_3Yr():
    null_type_list = ['', None, 'null', 'Null', 'NULL', '/', ' ']

    try:
        RPR1EntLitigation3Yr = EG_BBD['U_RPR1EntLitigation_3Yr']

        if RPR1EntLitigation3Yr not in null_type_list:
            return float(RPR1EntLitigation3Yr)
        else:
            return u'缺失值'

    except:
        return u'缺失值'


result = U_R1EntLitigation_3Yr()